package exercise9;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.HBox;
import javafx.stage.Stage;
import javafx.scene.layout.Pane;

public class Exercise14_26 extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) {
        ClockPane clock1 = new ClockPane(4, 20, 45);
        ClockPane clock2 = new ClockPane(22, 46, 15);
        clock1.setWidth(200);
        clock1.setHeight(200);
        clock2.setHeight(200);
        clock2.setWidth(200);

        Pane pane=new HBox(10);

        pane.getChildren().addAll(clock1,clock2);

        Scene scene=new Scene(pane,400,400);

        primaryStage.setScene(scene);
        primaryStage.setTitle("时钟");
        primaryStage.show();

    }
}
